<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>使用v-if和v-show指令分别实现元素的显隐</title>
<!--引入Vue库-->
<script src="vue.js"></script>
</head>
<body>	
<div id="app">
    <p v-if="rank>1">你好！plus会员</p>
    <p v-show="rank<1">欢迎登录</p>
</div>
<script>
  var vm=new Vue({ 
      el: '#app', 
      data: { 
          rank:2
        }
      })
</script>
</body>
</html>
